<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<f:view>
    <f:loadBundle basename="shmallarchitect.resources.ShmallResources" var="res"/>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></meta>
            <title>
                <h:outputText value="#{res.title} - #{res['createGallery.pageTitle']}"/>
            </title>
            <link href="../css/shmall.css" rel="stylesheet" media="screen"></link>
            <link rel="shortcut icon" href="images/favicon.png">
        </head>
        <body><h:form>
                <table width="100%" border="0">
                    <tr>
                        <td>
                            <h1 align="center">
                                <h:graphicImage url="/images/shmall_logo.png"
                                                alt="logo"/>
                                <h:outputText value="#{res.title}" styleClass="LogoTitle"/>
                            </h1>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <f:subview id="loginbar">
                                <jsp:include page="mainbar.jsp"/>
                            </f:subview>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p>
                            <h:outputText value="#{res[\'createGallery.header\']}" styleClass="PageTitle"/></p>

                            <h:messages globalOnly="true" infoClass="RegError"/>

                            <h:panelGrid width="70%" columns="3" border="0">

                                <h:outputLabel value="#{res[\'createGallery.name\']}" for="name" />
                                <h:inputText required="true" id="name" binding="#{CreateGalleryMBean.name}"/>
                                <h:message for="name" errorClass="ValidateError"/>

                                <h:outputLabel value="#{res[\'createGallery.owner\']}" for="owner" />
                                <h:inputText required="true" id="owner" binding="#{CreateGalleryMBean.owner}"/>
                                <h:message for="owner" errorClass="ValidateError"/>

                                <h:outputLabel value="#{res[\'createGallery.ownerEmail\']}" for="ownerEmail" />
                                <h:inputText required="true" id="ownerEmail" binding="#{CreateGalleryMBean.ownerEmail}"/>
                                <h:message for="ownerEmail" errorClass="ValidateError"/>

                                <h:outputLabel value="#{res[\'createGallery.country\']}" for="country"/>
                                <h:inputText required="false" id="country" binding="#{CreateGalleryMBean.country}"/>
                                <h:message for="country" errorClass="ValidateError"/>

                                <h:outputLabel value="#{res[\'createGallery.city\']}" for="city"/>
                                <h:inputText required="false" id="city" binding="#{CreateGalleryMBean.city}"/>
                                <h:message for="city" errorClass="ValidateError"/>

                                <h:outputLabel value="#{res[\'createGallery.zip\']}" for="zip"/>
                                <h:inputText required="false" id="zip" binding="#{CreateGalleryMBean.zip}" />
                                <h:message for="zip" errorClass="ValidateError"/>

                                <h:outputLabel value="#{res[\'createGallery.street\']}" for="street"/>
                                <h:inputText required="false" id="street" binding="#{CreateGalleryMBean.street}"/>
                                <h:message for="street" errorClass="ValidateError"/>

                                <h:outputLabel value="#{res[\'createGallery.number\']}" for="number"/>
                                <h:inputText required="false" id="number" binding="#{CreateGalleryMBean.number}"/>
                                <h:message for="number" errorClass="ValidateError"/>

                                <f:verbatim>&nbsp;</f:verbatim>
                                <h:panelGroup>
                                    <h:commandButton value="#{res[\'createGallery.createButton\']}" action="#{CreateGalleryMBean.createGallery}" styleClass="NiceButton"/>
                                    <f:verbatim>&nbsp;&nbsp;&nbsp;&nbsp;</f:verbatim>
                                    <h:commandButton value="#{res[\'createGallery.cancelButton\']}" action="cancel" immediate="true" styleClass="NiceButton"/>
                                </h:panelGroup>

                            </h:panelGrid>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <f:subview id="creditsbar">
                                <jsp:include page="../creditsbar.jsp"/>
                            </f:subview>
                        </td>
                    </tr>
                </table>
        </h:form></body>
    </html>
</f:view>